﻿package ua.mihaylenko.canvas.gui 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import ua.mihaylenko.canvas.data.DataManager;
	import ua.mihaylenko.canvas.controller.EventManager;
	import ua.mihaylenko.canvas.controller.CanvasEvent;
	/**
	 * ...
	 * @author Mihaylenko A.L.
	 */
	public class GUISimpleWindow extends Sprite
	{
		
		public function GUISimpleWindow() 
		{
			this.addEventListener(Event.ADDED_TO_STAGE, onStage);
		}
		public function onStage(event:Event) {
			this.removeEventListener(Event.ADDED_TO_STAGE, onStage);
			DataManager.getInatsnce().configuratePopUp(this);
		}
		
	}
	
}